package com.qidian.mes.defect.mapper;

import com.qidianit.mes.pojo.Defect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 泽华
 * @Description
 * @Time 2024-10-16 16:20
 */
public interface DefectMapper {
    /**
     * 增
     * @param defect
     * @return
     */
    int insert(Defect defect);

    //批量删除
    int deletesById(@Param("defectIds")Long [] defectId);

    //删
    Integer deleteById(Defect defect);

    Integer update(Defect defect);

    //分页查询
    List<Defect> selectList(@Param("defectDescription") String defectDescription, @Param("defectType") String defectType, @Param("defectGrade") String defectGrade);

    //通过id查询这条数据
    Defect selectById(Long defectId);

}
